<form id="distributionuserpowerform" target="_parent" action="${basepath}/power/user/distribution.htm" method="post">
<input name="_method" value="put" type="hidden"/>
<input name="userId" value="${userId}" type="hidden"/>
<table>
	<tr>
	<#assign n=0 />
	<#list powers as power>
		<#assign n=n+1 />
		<#if n%2 != 0>
			</tr><tr>
			<td>
				<input type="checkbox" name="powerIds" value="${power.id}"	<#if PMTool.isHasPower(power.powerCode,userpowers)>checked="checked"</#if> />
				${power.powerName}
			</td>
		<#else>
			<td>
				<input type="checkbox" name="powerIds" value="${power.id}"	<#if PMTool.isHasPower(power.powerCode,userpowers)>checked="checked"</#if> />
				${power.powerName}
			</td>
		</#if>
	</#list>
	</tr>
</table>
</form>
